{template 'common/header'}
<title>活动（营销）</title>
<style type="text/css">
    body {margin:0px; background:#eee; font-family:'微软雅黑'; }
    a {text-decoration:none;}
    .topbar {height:50px; padding:10px; background:#fff;}
    .topbar .user_face {height:50px; width:50px; background:#ccc; float:left;}
    .topbar .user_face img {height:100%; width:100%;}
    .topbar .user_info {height:50px; width:auto; float:left; margin-left:12px;}
    .topbar .user_info .user_name {height:24px; width:100%; font-size:16px; line-height:24px; color:#666;}
       .topbar .user_info .user_name span { font-size:14px; color:#ff6600}
    .topbar .user_info .user_date {height:14px; width:100%; font-size:14px; line-height:14px; color:#999;}
    .topbar .user_info .user_shangji {margin-top:2px;height:14px; width:100%; font-size:14px; line-height:14px; color:#999;}

    .top {height:180px;padding:5px; background:#cc3431;}
    .top .top_1 {height:114px; width:100%;}
    .top .top_1 .text {height:114px; width:auto; float:left; color:#fff; line-height:30px; font-size:14px; color:#fff;}
    .top .top_1 .ico {height:40px; width:30px; background:url(../addons/ewei_shop/plugin/commission/template/mobile/default/static/images/gold_ico2.png) 0px 10px no-repeat; margin-bottom:74px; float:right;}
    .top .top_2 {height:66px; width:100%; font-size:40px; line-height:66px; color:#fff;}
    .top .top_2 span {height:32px; color:#fff; width:auto; border:1px solid #fff; font-size:14px; line-height:32px; margin-top:17px; padding:0px 15px;  float:right; border-radius:5px;}
    .top .top_2 .disabled { color:#999;border:1px solid #999;}
    .menu {overflow:hidden; background:#fff;}
    .menu .nav { width:33%; float:left;padding-top:10px;padding-bottom:10px;}
    
    .menu .nav .title {height:24px; width:100%; text-align:center; font-size:14px; color:#666;}
    .menu .nav .con {height:20px; width:100%; text-align:center; font-size:12px; color:#999;}
    .menu .nav .con span {color:#f90;}
    .menu .nav1 {border-bottom:1px solid #f1f1f1; border-right:1px solid #f1f1f1;  text-align:center; } .menu .nav1 i { color:#ff9901;}
    .menu .nav2 {border-bottom:1px solid #f1f1f1; border-right:1px solid #f1f1f1;text-align:center;} .menu .nav2 i { color:#98cd37}
    .menu .nav3 {border-bottom:1px solid #f1f1f1;text-align:center; } .menu .nav3 i { color:#ffcb05} 
    .menu .nav4 {border-bottom:1px solid #f1f1f1;border-right:1px solid #f1f1f1; text-align:center;} .menu .nav4 i { color:#ca81d1}
    .menu .nav5 {border-bottom:1px solid #f1f1f1;border-right:1px solid #f1f1f1; text-align:center;} .menu .nav5 i { color:#53bdec}
    .menu .nav6 {border-right:1px solid #f1f1f1;border-bottom:1px solid #f1f1f1; text-align:center;position:relative} .menu .nav6 i { color:#aadaf6}
    .menu .nav6 span{height:16px; width:16px; background:#f30; border-radius:8px; position:absolute; top:5px; right:25%; font-size:12px; text-align:center;color:#fff; line-height:16px;}
    .menu .nav7 {border-bottom:1px solid #f1f1f1; text-align:center; border-right:1px solid #f1f1f1; } .menu .nav7 i { color:#f3d110}
    .menu .nav8 {border-bottom:1px solid #f1f1f1; text-align:center; } .menu .nav8 i { color:#f3d110}
 
 
</style>
<div id='container'></div>
<script id='tpl_main' type='text/html'>
   <div class="page_topbar">
    <a href="javascript:;" class="back" onclick="location.href='{php echo $this->createPluginMobileUrl('commission/myshop/user')}'"><i class="fa fa-angle-left"></i></a>
    <div class="title">活动（营销）</div>
   </div>
    <div class="menu">
                {if $member['shoptype']==1 || $member['shoptype']==2 || $member['shoptype']==3}
                <a href="{php echo $this->createPluginMobileUrl('commission/myshop/gift')}"><div class="nav nav1"><i class="fa fa-gift  fa-3x"></i><div class="title">礼品设置</div><div class="con">编辑礼品</div></div></a>
                {/if}
                {if $member['shoptype']==1 || $member['shoptype']==2 || $member['shoptype']==3}
                <a href="{php echo $this->createPluginMobileUrl('commission/myshop/gold')}"><div class="nav nav2"><i class="fa fa-money  fa-3x"></i><div class="title">赠送金币</div><div class="con">编辑金币</div></div></a>
                {/if}
                {if $member['shoptype']==2 || $member['shoptype']==3}
                <a href="{php echo $this->createPluginMobileUrl('commission/myshop/experience')}"><div class="nav nav2"><i class="fa fa-credit-card  fa-3x"></i><div class="title">体验券</div><div class="con">编辑体验券</div></div></a>
                {/if}
                {if $member['shoptype']==1 || $member['shoptype']==2 || $member['shoptype']==3}
                <a href="{php echo $this->createPluginMobileUrl('commission/index/article')}"><div class="nav nav2"><i class="fa fa-file  fa-3x"></i><div class="title">平台软文</div><div class="con">发展下线</div></div></a>
                {/if}
                {if $member['shoptype']==2 || $member['shoptype']==3}
                <!--<a href="{php echo $this->createPluginMobileUrl('commission/editor_article',array('op'=>'editor'))}"><div class="nav nav2"><i class="fa fa-edit  fa-3x"></i><div class="title">编辑软文</div><div class="con">发展下线</div></div></a>-->
                {/if}
                <a href="{php echo $this->createPluginMobileUrl('commission/index/fightgroups')}"><div class="nav nav2"><i class="fa fa-credit-card  fa-3x"></i><div class="title">蓝血风暴</div><div class="con">编辑蓝血风暴</div></div></a>
    </div>
</script>
 
<script language="javascript">
    require(['tpl', 'core'], function(tpl, core) {
        
        
        core.pjson('commission',{},function(json){
            var result = json.result;   
            $('#container').html(  tpl('tpl_main',result) );
        },true);
        
        
        
    })
</script>
{php $show_footer=true;$footer_current ='commission'}
{template 'common/footer'}
